#pragma once

#include <string>
#include "DirectXEngine.h"

class FontRender2D
{
protected:
	FontRender2D(void);
	static FontRender2D * instance;
public:
	static FontRender2D * Instance();
	~FontRender2D(void);

	void DrawText(int x, int y, std::wstring text);
	void DrawText(int x, int y, int alignment, std::wstring text);
	void DrawText(int x, int y, int alignment, std::wstring text, unsigned int colour);

	void SetFontPos(int x, int y);

protected:
	LPD3DXFONT dxFont;
	RECT fontPosition;
};
